﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="DarkBone">
//   DarkBone
// </copyright>
// <summary>
//   Collects SC2 Data and sends them over TCP network
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DarkBone.Collector
{
   using System;
   using System.Diagnostics;

   using DarkBone.Engine;

   /// <summary>
   /// Collects SC2 Data and sends them over TCP network
   /// </summary>
   public class Program
   {
      /// <summary>
      /// Entry point
      /// </summary>
      /// <param name="args">
      /// The args.
      /// </param>
      public static void Main(string[] args)
      {
         Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
         var collector = new Collector(DarkBone.Engine.Networking.Role.Server, "SC2");
         collector.Start();
         Console.WriteLine(@"Press any key to exit..");
         Console.ReadKey();
         collector.Stop();
      }
   }
}
